<?php

/**
 * This file is part of the Pagizer package.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 *
 * @copyright   Copyright (c) 2010 Advisa (http://www.advisa.fr)
 * @author      Pagizer Core Team <team@pagizer.org>
 * @package     pagizer
 * @subpackage  news
 */

class m_news_views_block_front_NewsSuccessDetailView extends f_core_View
{
	public function execute()
	{
	    $tplEngine = $this->getTemplateEngine()->disableCache();

        $tplEngine->setDelimiter('{{','}}');

	    $tplEngine->setModuleTemplate('news', 'front/block/NewsDetail.html');

	    if(is_array($this->getModels()) && count($this->getModels()) > 0)
	    {
            foreach($this->getModels() as $varName => $value)
            {
                $tplEngine->assign($varName, $value);
            }
	    }

	    $tplEngine->renderDisplay();
	}
}